
public class Price_DB {
	
	public static String getProductName(int position){
		
		String result=null;
		
		switch(position){
			case 0:
				result="성별 : ";
				break;
			case 1:
				result=" / 나이 : ";
				break;
			case 2:
				result="1 신장";
				break;
			case 3:
				result="2 체중";
				break;
			case 4:
				result="3 안경 착용";
				break;
			case 5:
				result="4 얼굴 흉터";
				break;
			case 6:
				result="5 성형";
				break;
			case 7:
				result="6 외모";
				break;
			case 8:
				result="7 최종학력";
				break;
			case 9:
				result="8 대학명";
				break;
			case 10:
				result="9 연봉";
				break;
			
		}
		
		return result;
	}
	
	public static String getProductContent(long[] page_value, int position){
		
		String result=null;
		
		switch(position){
		case 0:
			if(page_value[0]==0){
				result="남";
			}else{
				result="여";
			}
			break;
		case 1:
			result=String.valueOf((page_value[1]+1)*10);
			break;
		case 2:
			String[][] height= new String[2][];
			
			height[0] = new String[]{"184 ~","181 ~ 184","180 ~ 181","179 ~ 180","177 ~ 179","176 ~ 177","174 ~ 176","172 ~ 174","170 ~ 172","169 ~ 170","168 ~ 169","167 ~ 168","165 ~ 167","162 ~ 165"," ~ 162"};
			height[1] = new String[]{"172 ~","170 ~ 172","168 ~ 170","166 ~ 168","165 ~ 166","164 ~ 165","162 ~ 164","160 ~ 162","158 ~ 160","157 ~ 158","156 ~ 157","154 ~ 156","152 ~ 154","150 ~ 152"," ~ 150"};
			
			result=height[(int)page_value[0]][(int)page_value[2]];
			break;
		case 3:
			String[][] weight = new String[2][];
			
			weight[0] = new String[]{"76 ~","74 ~ 76","72 ~ 74","70 ~ 72","69 ~ 70","67 ~ 69","66 ~ 67","65 ~ 66","64 ~ 65","63 ~ 64","61 ~ 63","60 ~ 61","58 ~ 60","56 ~ 58"," ~ 56"};
			weight[1] = new String[]{"61 ~","59 ~ 61","58 ~ 59","56 ~ 58","55 ~ 56","54 ~ 55","53 ~ 54","51 ~ 53","50 ~ 51","49 ~ 50","47 ~ 49","46 ~ 47","45 ~ 46","42 ~ 45"," ~ 42"};
			
			result=weight[(int)page_value[0]][(int)(14-page_value[3])];;
			break;
		case 4:
			//Glassess
			if(page_value[11]==1){
				result="예";
			}else{
				result="아니오";
			}
			break;
		case 5:
			//Scar
			if(page_value[8]==1){
				result="예";
			}else{
				result="아니오";
			}
			break;
		case 6:
			//Cosmetic
			int sum=0;
			for(int i=7;i<21;i++){
				if(i!=8 && i!=11){
					sum+=page_value[i];
				}
			}
			
			if(sum!=0){
				result="예";
			}else{
				result="아니오";
			}
			break;
		case 7:
			//Appearance
			result=(9-page_value[21])+"등급";
			break;
		case 8:
			//Final Education
			String[] final_education = new String[]{"대학원 졸업","대학원 재학","대학원 중퇴","대학 졸업","대학교 재학","대학교 중퇴","고등학교 졸업","고등학교 재학","고등학교 중퇴","중학교 졸업","중학교 재학","중학교 중퇴","초등학교 졸업","초등학교 재학","초등학교 중퇴"};
			result=final_education[(int)page_value[4]];
			break;
		case 9:
			//Univ
			String[] univ = new String[]{"CHA의과대","가야대","가우언대","가천의과대","감리신학대","강남대","강릉대","건국대(서울)","건국대(충주)","건양대","경기대","경남대","경동대","경북대","경북대(상주)","경산대","경상대","경성대","경운대","경원대","경일대","경주대","경희대","경희대","계명대","고려대(서울)","고려대(세종)","고신대","공주대","관동대","광신대","광운대","광주대","광주여대","광주카톨릭대","국민대","군산대","그리스도신학대","극동대","금강대","금오공과대","꽃동네현도사회복지대","나사렛대","남부대","남서울대","단국대(죽전)","단국대(천안)","대구대","대구예대","대구카톨릭대","대불대","대신대","대전대","대전외대","대전카톨릭대","대진대","덕성여대","동국대","동국대","동덕여대","동명대","동서대","동신대","동아대","동양대","동의대","동해대","루터대","명신대","명지대","목원대","목포대","목포카톨릭대","목포해양대","배재대","부경대","부산대","부산대(밀양)","부산외대","부산장신대","부산카톨릭대","삼육대","삼척대","상명대(서울)","상명대(천안)","상지대","서강대","서경대","서남대","서울기독교대","서울대","서울산업대","서울시립대","서울신학대","서울여대","서울장신대","서원대","선문대","성결대","성공회대","성균관대","성민대","성신여대","세명대","세종대","수원대","수원카톨릭대","숙명여대","순천대","순천향대","숭실대","신라대","아세아연합신학대","아시아대","아주대","안동대","안양대","연세대(서울)","연세대(원주)","영남대","영남신학대","영동대","영산대","영산선학교대","예원대","용인대","우석대","우송대","울산과학기술대","울산대","원광대","위덕대","을지대","이화여대","인제대","인천대","인천카톨릭","인하대","전남대","전남대(여수)","전북대","전주대","제주대","조선대","중부대","중앙대","중앙승가대","중원대","진주산업대","창원대","천안대","청운대","청주대","초당대","총신대","추계예대","충남대","충북대","충주대","침례신학대","카이스트","카톨릭대","칼빈대","탐라대","평택대","포항공대","한경대","한국교원대","한국국제대","한국기술교육대","한국산업기술대","한국성서대","한국외국어대","한국전통문화학교","한국정보통신대","한국체육대","한국항공대","한국해양대","한남대","한동대","한라대","한려대","한림대","한밭대","한북대","한서대","한성대","한세대","한신대","한양대(서울)","한양대(안산)","한영신학대","한예종","한일장신대","협성대","호남대","호남신학대","호서대","호원대","홍익대"};
			result=univ[(int)page_value[5]];
			break;
		}
		return result;
	}
	
	public static long getProductPrice(long[] page_value, int position){
		
		long result=0;
		
		switch(position){
		case 2:
			long[][] height= new long[2][];
			
			height[0] = new long[]{18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000,8400000,7200000,6000000,4800000,3600000,2400000,1200000};
			height[1] = new long[]{42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000,19600000,16800000,14000000,11200000,8400000,5600000,2800000};
			
			result=height[(int)page_value[0]][(int)page_value[2]];
			break;
		case 3:
			long[][][] weight = new long[][][]{{{18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000,8400000,7200000,6000000,4800000,3600000,2400000,1200000}
			,{16800000,18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000,8400000,7200000,6000000,4800000,3600000,2400000}
			,{15600000,16800000,18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000,8400000,7200000,6000000,4800000,3600000}
			,{14400000,15600000,16800000,18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000,8400000,7200000,6000000,4800000}
			,{13200000,14400000,15600000,16800000,18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000,8400000,7200000,6000000}
			,{12000000,13200000,14400000,15600000,16800000,18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000,8400000,7200000}
			,{10800000,12000000,13200000,14400000,15600000,16800000,18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000,8400000}
			,{9600000,10800000,12000000,13200000,14400000,15600000,16800000,18000000,16800000,15600000,14400000,13200000,12000000,10800000,9600000}
			,{8400000,9600000,10800000,12000000,13200000,14400000,15600000,16800000,18000000,16800000,15600000,14400000,13200000,12000000,10800000}
			,{7200000,8400000,9600000,10800000,12000000,13200000,14400000,15600000,16800000,18000000,16800000,15600000,14400000,13200000,12000000}
			,{6000000,7200000,8400000,9600000,10800000,12000000,13200000,14400000,15600000,16800000,18000000,16800000,15600000,14400000,13200000}
			,{4800000,6000000,7200000,8400000,9600000,10800000,12000000,13200000,14400000,15600000,16800000,18000000,16800000,15600000,14400000}
			,{3600000,4800000,6000000,7200000,8400000,9600000,10800000,12000000,13200000,14400000,15600000,16800000,18000000,16800000,15600000}
			,{2400000,3600000,4800000,6000000,7200000,8400000,9600000,10800000,12000000,13200000,14400000,15600000,16800000,18000000,16800000}
			,{1200000,2400000,3600000,4800000,6000000,7200000,8400000,9600000,10800000,12000000,13200000,14400000,15600000,16800000,18000000}}
			,{{42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000,19600000,16800000,14000000,11200000,8400000,5600000,2800000}
			,{39200000,42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000,19600000,16800000,14000000,11200000,8400000,5600000}
			,{36400000,39200000,42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000,19600000,16800000,14000000,11200000,8400000}
			,{33600000,36400000,39200000,42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000,19600000,16800000,14000000,11200000}
			,{30800000,33600000,36400000,39200000,42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000,19600000,16800000,14000000}
			,{28000000,30800000,33600000,36400000,39200000,42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000,19600000,16800000}
			,{25200000,28000000,30800000,33600000,36400000,39200000,42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000,19600000}
			,{22400000,25200000,28000000,30800000,33600000,36400000,39200000,42000000,39200000,36400000,33600000,30800000,28000000,25200000,22400000}
			,{19600000,22400000,25200000,28000000,30800000,33600000,36400000,39200000,42000000,39200000,36400000,33600000,30800000,28000000,25200000}
			,{16800000,19600000,22400000,25200000,28000000,30800000,33600000,36400000,39200000,42000000,39200000,36400000,33600000,30800000,28000000}
			,{14000000,16800000,19600000,22400000,25200000,28000000,30800000,33600000,36400000,39200000,42000000,39200000,36400000,33600000,30800000}
			,{11200000,14000000,16800000,19600000,22400000,25200000,28000000,30800000,33600000,36400000,39200000,42000000,39200000,36400000,33600000}
			,{8400000,11200000,14000000,16800000,19600000,22400000,25200000,28000000,30800000,33600000,36400000,39200000,42000000,39200000,36400000}
			,{5600000,8400000,11200000,14000000,16800000,19600000,22400000,25200000,28000000,30800000,33600000,36400000,39200000,42000000,39200000}
			,{2800000,5600000,8400000,11200000,14000000,16800000,19600000,22400000,25200000,28000000,30800000,33600000,36400000,39200000,42000000}}};
			
			result=weight[(int)page_value[0]][(int)page_value[2]][(int)(14-page_value[3])];;
			break;
		case 4:
			//Glassess
			if(page_value[11]==1){
				result=-1500000;
			}else{
				result=0;
			}
			break;
		case 5:
			//Scar
			if(page_value[8]==1){
				result=-5000000;
			}else{
				result=0;
			}
			break;
		case 7:
			//appearance
			long[][] appearance = new long[2][];
			appearance[0]=new long[]{400000,1100000,1800000,2500000,3200000,3900000,4600000,5300000,6000000};
			appearance[1]=new long[]{933333,2566667,4200000,5833333,7466667,9100000,10733333,12366667,14000000};
			result=3*appearance[(int)page_value[0]][(int)page_value[21]];
			break;
		case 8:
			//Final Education
			long[][] final_education = new long[2][];
			final_education[0]=new long[]{36000000,33600000,31200000,28800000,26400000,24000000,21600000,19200000,16800000,14400000,12000000,9600000,7200000,4800000,2400000};
			final_education[1]=new long[]{12000000,11200000,10400000,9600000,8800000,8000000,7200000,6400000,5600000,4800000,4000000,3200000,2400000,1600000,800000};
			result=final_education[(int)page_value[0]][(int)page_value[4]];
			break;
		case 9:
			//Univ
			long[][] univ = new long[2][];
			univ[0]=new long[]{28800000,19200000,32000000,28800000,22400000,28800000,22400000,41600000,28800000,25600000,35200000,25600000,12800000,41600000,25600000,19200000,32000000,28800000,16000000,35200000,19200000,19200000,44800000,38400000,28800000,48000000,32000000,19200000,28800000,19200000,6400000,38400000,16000000,9600000,9600000,38400000,19200000,22400000,12800000,35200000,32000000,22400000,19200000,9600000,22400000,38400000,28800000,22400000,3200000,25600000,12800000,9600000,22400000,6400000,9600000,25600000,35200000,41600000,22400000,35200000,22400000,25600000,16000000,32000000,16000000,28800000,12800000,9600000,6400000,35200000,25600000,19200000,6400000,25600000,25600000,32000000,41600000,28800000,25600000,16000000,22400000,28800000,16000000,35200000,28800000,22400000,48000000,28800000,3200000,22400000,48000000,38400000,44800000,12800000,35200000,16000000,25600000,25600000,22400000,28800000,44800000,3200000,35200000,19200000,38400000,28800000,9600000,38400000,25600000,28800000,41600000,25600000,3200000,3200000,41600000,25600000,25600000,48000000,35200000,32000000,6400000,12800000,16000000,6400000,12800000,22400000,16000000,25600000,44800000,32000000,25600000,16000000,25600000,41600000,28800000,32000000,12800000,41600000,38400000,19200000,32000000,16000000,32000000,25600000,19200000,44800000,6400000,12800000,22400000,32000000,22400000,12800000,25600000,12800000,22400000,25600000,38400000,35200000,25600000,9600000,48000000,35200000,19200000,9600000,25600000,48000000,25600000,38400000,16000000,35200000,32000000,19200000,44800000,22400000,44800000,32000000,41600000,35200000,28800000,38400000,19200000,16000000,28800000,28800000,19200000,25600000,32000000,22400000,25600000,44800000,38400000,9600000,32000000,6400000,25600000,16000000,3200000,22400000,12800000,41600000};
			univ[1]=new long[]{14400000,9600000,16000000,14400000,11200000,14400000,11200000,20800000,14400000,12800000,17600000,12800000,6400000,20800000,12800000,9600000,16000000,14400000,8000000,17600000,9600000,9600000,22400000,19200000,14400000,24000000,16000000,9600000,14400000,9600000,3200000,19200000,8000000,4800000,4800000,19200000,9600000,11200000,6400000,17600000,16000000,11200000,9600000,4800000,11200000,19200000,14400000,11200000,1600000,12800000,6400000,4800000,11200000,3200000,4800000,12800000,17600000,20800000,11200000,17600000,11200000,12800000,8000000,16000000,8000000,14400000,6400000,4800000,3200000,17600000,12800000,9600000,3200000,12800000,12800000,16000000,20800000,14400000,12800000,8000000,11200000,14400000,8000000,17600000,14400000,11200000,24000000,14400000,1600000,11200000,24000000,19200000,22400000,6400000,17600000,8000000,12800000,12800000,11200000,14400000,22400000,1600000,17600000,9600000,19200000,14400000,4800000,19200000,12800000,14400000,20800000,12800000,1600000,1600000,20800000,12800000,12800000,24000000,17600000,16000000,3200000,6400000,8000000,3200000,6400000,11200000,8000000,12800000,22400000,16000000,12800000,8000000,12800000,20800000,14400000,16000000,6400000,20800000,19200000,9600000,16000000,8000000,16000000,12800000,9600000,22400000,3200000,6400000,11200000,16000000,11200000,6400000,12800000,6400000,11200000,12800000,19200000,17600000,12800000,4800000,24000000,17600000,9600000,4800000,12800000,24000000,12800000,19200000,8000000,17600000,16000000,9600000,22400000,11200000,22400000,16000000,20800000,17600000,14400000,19200000,9600000,8000000,14400000,14400000,9600000,12800000,16000000,11200000,12800000,22400000,19200000,4800000,16000000,3200000,12800000,8000000,1600000,11200000,6400000,20800000};
			result=univ[(int)page_value[0]][(int)page_value[5]];
			break;
		}
		return result;
	}
	
	public static String getCosmeticContent(int position){
		String result=null;
		//Cosmetic
		switch(position){
		case 7:
			result="이마성형";
			break;
		case 9:
			result="점제거";
			break;
		case 10:
			result="안검하수";
			break;
		case 12:
			result="치아 교정";
			break;
		case 13:
			result="앞트임";
			break;
		case 14:
			result="뒷트임";
			break;
		case 15:
			result="코성형";
			break;
		case 16:
			result="보조개";
			break;
		case 17:
			result="눈썹이식";
			break;
		case 18:
			result="쌍꺼풀";
			break;
		case 19:
			result="라식/라섹";
			break;
		case 20:
			result="안면윤곽술";
			break;
		
		}
		
		return result;
	}
	
	public static long getCosmeticPrice(int position){
		
		long result=0;
		
		switch(position){
		case 7:
			result=2500000;
			break;
		case 9:
			result=50000;
			break;
		case 10:
			result=1500000;
			break;
		case 12:
			result=5500000;
			break;
		case 13:
			result=800000;
			break;
		case 14:
			result=800000;
			break;
		case 15:
			result=3500000;
			break;
		case 16:
			result=500000;
			break;
		case 17:
			result=1800000;
			break;
		case 18:
			result=1000000;
			break;
		case 19:
			result=2000000;
			break;
		case 20:
			result=3500000;
			break;
		
		}
		
		return result;
	}
}
